home *** CD-ROM | disk | FTP | other *** search
- Path: earth.superlink.net!usenet
- From: rizzom@superlink.net
- Newsgroups: comp.lang.c
- Subject: Newbie Q: Arrays > 64K?
- Date: 4 Feb 1996 22:05:32 GMT
- Organization: SuperNet Inc. (908) 828-8988
- Message-ID: <4f3ajc$oud@earth.superlink.net>
- NNTP-Posting-Host: ez2.superlink.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Hi,
-
- I am using Turbo C++ 3.0 in DOS. I would just like to know
- how to declare an array that is larger than 64K. I have tried
- all of the memory models available and still get an error
- saying Array too large. Here is the code:
-
-
- typedef enum {IDLE = 0, BUSY = 1} proc_state;
-
- typedef struct
- {
- char inst[10];
- }InstString;
-
- typedef struct
- {
- int datamem[102];
- InstString instruct[102];
- proc_state state;
- int PC;
- char IR[10];
- int AC;
- }VMProc;
-
-
- main()
- {
- VMProc proc[64];
- ..
- }
-
- Any help would be greatky appreciated.
-
- Thanks
-
- Mike Rizzo
- rizzom@superlink.net
-
-